package xiegd.study.design.bright;

/**
 * @Author: xieguangda
 * @Description:
 * @Date: 2023/11/29 16:31
 */
public class MyTest {
    public static void main(String[] args) {
        Notification notification = new SevereNotification(new MsgSender() {
            @Override
            public void send(String message) {
                System.out.println("send东西");
            }
        }) {
//            @Override
//            public void notify2(String message) {
//                System.out.println("我去干啥哦");
//            }
        };

        notification.notify2("111");
    }
}
